<a data-forward="controller=user_show&user_id=<?= $workMsg->Author ?>" onclick="act_content(this)">
    <div class="app-avatar-bar am-text-xs">
        <div class="app-avatar-bar-img">
            <img class="am-circle app-avatar-sm" alt="" src="<?= $workMsg->UserAvatar ?>"/>
        </div>
        <div class="app-avatar-bar-name">
            <div><span class="app-main-color"><?= $workMsg->UserName ?></span></div>
            <div><span class="app-datetime-color"><?= $workMsg->ReleaseDate ?></span></div>
        </div>
        <div class="am-fr app-avatar-bar-viewcount">
            <i class="am-icon am-icon-eye am-icon-fw app-viewcount-color"></i><span
                    class="app-viewcount-color"><?= formatDataSize($workMsg->ViewCount) ?></span>
        </div>
    </div>
</a>
<div data-am-widget="slider" class="am-slider am-slider-a1 am-slider-manual"
     data-am-slider='{&quot;directionNav&quot;:false}'>
    <ul id="work_show_imgs" class="am-slides">
        <?php
        if ($workMsg->Picture != "") {
            $workImgList = explode(";", $workMsg->Picture);
            foreach ($workImgList as $Img) {
                $workImg = make_img_name::make_img_mini_name($Img);
                echo "<li onclick='img_full_show(this);' ><img src='{$CfgPara->httproot}/works_pic/{$workImg}'></li>";
            }
        }
        ?>

    </ul>
</div>
<div class="app-content" style="height: 40px;">
    <span class="app-show-tag">
	<?php
    if ($workMsg->State == 0) {
        echo '草稿';
    } elseif ($workMsg->Type == 2) {
        echo '自制';
    } else {
        echo '定制';
    }
    ?>
    </span>
    <b class="app-show-tittle app-tittle-color am-text-default" id="work_show_name"
       data-work-id="<?= $workMsg->Id ?>"><?= $workMsg->Name ?></b>
</div>

<?php if ($workMsg->State == 1) { ?>
    <div class="app-comment-color am-text-xs" style="padding-left:10px;padding-right:10px">
        <span id="work_up_count"><?= $workMsg->UpCount ?></span>个推荐
        &nbsp;&bull;&nbsp;
        <span id="comment_count1"><?= $workMsg->CommentCount ?></span>个评论
        <div class="app-gray-color">
            <span id="work_up_names"><?php if (isset($workUpNames) && $workUpNames != '') echo $workUpNames; ?></span>
            <span id="work_up_names_ex"><?php if (isset($workUpNames) && $workUpNames != '') echo '等人推荐了此作品'; ?></span>
        </div>
    </div>
    <div class="app-content am-text-lg">
        &nbsp;
        <a id="icon_recommend"
           class="<?= $recommendColorClass ?> am-icon am-icon-heart<?= $recommendIconEx ?> am-icon-fw"
           onclick="work_recommand(this)">
        </a>
        &nbsp;&nbsp;&nbsp;
        <a data-forward="controller=comment&comment_edit_view=1&reply_id=0&parent_id=<?= $workMsg->Id ?>&parent_type=1"
           class="am-link-muted am-icon am-icon-comment<?= $commendIconEx ?> am-icon-fw"
           onclick="act_content(this)">
        </a>
    </div>
<?php } ?>

<div class="app-content-divider"></div>
<div class="app-content-tittle"><b>作品介绍</b></div>
<div id="work_show_introd_content" class="app-content am-text-xs">
    <?= $workMsg->Introd ?>
    <?php require("{$CfgPara->root}/controller/work_show_topic_up.c.php"); ?>
</div>
<a data-forward="controller=user_show&user_id=<?= $workMsg->Author; ?>" onclick="act_content(this)">
    <div class="am-vertical-align" style="border-top: 1px solid #dedede;padding:0px 10px 0px 13px;height: 44px">
        <div class="am-text-xs am-vertical-align-middle">
            <div class="app-main-color"><?= $workMsg->UserName; ?></div>
            <div class="app-gray-color"><?= $workMsg->UserWorkCount; ?>篇作品</div>
        </div>
        <i class="app-gray-color am-icon-angle-right am-vertical-align-middle am-fr" style="padding-top:6px"></i>
    </div>
</a>
<div class="app-content-divider"></div>
<?php
if ($workMsg->State == 1) {
//连接鞋主秀控制器
    require("{$CfgPara->root}/controller/shoe_show.c.php");
//连接评论控制器
    $InputData['author_id'] = $workMsg->Author;
    require("{$CfgPara->root}/controller/comment.c.php");
}
?>
<div style="height:10px"></div>
<div class="am-popup" id="img_full_popup">
    <img id="img_full_show_img" src="" alt="" style="display: none">
    <div style="width: 100%; height: 100%; background-color: black" onclick="$('#img_full_popup').modal('close');">
        <div id="img_full_show_before"></div>
        <canvas data-step="0" id="img_full_show_canvas"></canvas>
    </div>
    <div style="position: absolute; bottom: 20px; left: 0px; width: 100%; padding: 0 20px">
        <a id="show_full_img_download" download
           href=""
           class="app-img-full-show-btn">
            <i class="am-icon-save"></i>
        </a>
        <a id="img_full_covert_btn" data-step="0" onclick="set_full_img_view(-1);" class="app-img-full-show-btn">
            <i class="am-icon-refresh"></i>
        </a>
    </div>
</div>
<script type="text/javascript">
    $('.am-slider-manual').flexslider();
    page_share_ini("work_show_imgs", "work_show_name");
</script>